import 'package:flutter/material.dart';
import 'package:flutterdemo/0demo/ui/animated_wrapper/animated_wrapper2/animated_wrapper.dart';
import 'package:flutterdemo/0demo/ui/animated_wrapper/common/animated_wrapper_common.dart';

class AnimatedWrapperPage2 extends StatefulWidget {
  const AnimatedWrapperPage2({Key key}) : super(key: key);

  @override
  State<AnimatedWrapperPage2> createState() => _AnimatedWrapperPage2State();
}

class _AnimatedWrapperPage2State extends State<AnimatedWrapperPage2> {
  @override
  Widget build(BuildContext context) {
    double scw = MediaQuery.of(context).size.width;
    double itemWidth = scw / 3;
    double itemHeight = itemWidth;

    return Scaffold(
      appBar: AppBar(title: Text("animated wrapper2")),
      body: AnimatedWrapper(
        itemWidth,
        itemHeight,
        scw,
      ),
    );
  }
}
